package com.hp.tiger.chapter11;

import java.util.concurrent.TimeUnit;

/**
 * @author XavierDong
 **/
public class QueryFromDBAction {

    public void execute() {
        try {
            TimeUnit.SECONDS.sleep(1);

            String name = "Alex"+Thread.currentThread().getName();
            ActionContext.getActionContext().getContext().setName(name);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
